import axios from "@/utils/http"

export function goOrder(obj:any){
    return axios({
        url:"/fore/foreOrder/addOrder",
        method:"POST",
        headers:{
            "Content-Type":"application/json"
        },
        data:{
            	"amount": "",
                "classId": obj.classId,
                "payType": obj.payType,
                "phone": "",
                "studentId": obj.payType
        }
    })
}

export function goPay(code:any){
    return axios({
        url:`/fore/foreOrder/goPay/${code}`,
        method:"POST",
        headers:{
            "Content-Type":"application/json"
        },
    })
}